﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace VRM2CustomControls
{
  public class menuButton : Button
  {
    public static readonly DependencyProperty ImagePathProperty;
    public static readonly DependencyProperty TextProperty;
    public static readonly DependencyProperty ArrowProperty;

    static menuButton()
    {
      DefaultStyleKeyProperty.OverrideMetadata(typeof(menuButton), new FrameworkPropertyMetadata(typeof(menuButton)));
      ImagePathProperty = DependencyProperty.Register("ImagePath", typeof(string), typeof(menuButton), new UIPropertyMetadata(null));
      TextProperty = DependencyProperty.Register("Text", typeof(string), typeof(menuButton), new UIPropertyMetadata(null));
      ArrowProperty = DependencyProperty.Register("Arrow", typeof(string), typeof(menuButton), new UIPropertyMetadata(null));
    }

    public string ImagePath
    {
        get { return (string)GetValue(ImagePathProperty); }
        set { SetValue(ImagePathProperty, value); }
    }

    public string Arrow
    {
      get { return (string)GetValue(ArrowProperty); }
      set { SetValue(ArrowProperty, value); }
    }

    public string Text
    {
        get { return (string)GetValue(TextProperty); }
        set { SetValue(TextProperty, value); }
     }

  }
}
